import { App as AntdApp, ConfigProvider } from 'antd'
import zhCN from 'antd/locale/zh_CN'
import { RouterProvider } from 'react-router-dom'
import router from './router/index.tsx'
import AntdMessage from '@/utils/antdMessage.tsx'

const App = () => {
  return (
    <ConfigProvider locale={zhCN}>
      <AntdApp>
        <AntdMessage />
        <RouterProvider router={router} />
      </AntdApp>
    </ConfigProvider>
  )
}

export default App
